package com.idvert.smsdemo.acivitys;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;

/**
 * Created by jigang.duan on 2017/12/8.
 */

public abstract class BaseAcivity extends AppCompatActivity {

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(getLayout());
        initUIS();
        initBinding();
        initActions();
    }

    abstract int getLayout();

    abstract void initUIS();

    abstract void initBinding();

    abstract void initActions();

    @Override
    protected void onResume() {
        super.onResume();
        onResumeInit();
        onResumeLogic();
    }

    abstract void onResumeInit();

    abstract void onResumeLogic();
}
